package com.appointmentmanager.dao;

import java.util.List;

import com.appointmentmanager.model.Project;
import com.appointmentmanager.model.User;

public interface ProjectDao {

	void insert(Project project);

	void update(Project project);

	void delete(Long pid);

	Project getProjectById(Long pid);
	
	Project getProjectByName(String name);

	List<Project> getAllProjects();

	/*List<Project> getProjectsByManager(Long mid);

	List<Project> getContributedProjects(Long uid);

	List<Project> getNoncontributedProjects(Long uid);

	List<User> getProjectContributors(Long pid);
	
	List<User> getProjectPendingUsers(Long pid);*/

	String getAccessStatus(Long uid, Long pid);

	void saveAccess(Long uid, Long pid, String status); // insert & update

	void deleteAccess(Long uid, Long pid);

}
